#include<stdio.h>
struct
{int year;
 int month;
 int day;
 }data;
 int main()
     {int i,days;
     int day_tab[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
     printf("input year,month,day:");
     scanf("%d,%d,%d",&data.year,&data.month,&data.day);
     days=0;
     for(i=1;i<data.month;i++)
         days=days+day_tab[i];
     days=days+data.day;
     if((data.year%4==0&&data.year%100!=0||data.year%400==0)&&data.month>=3)
         days=days+1;
     printf("%d/%d is the %th day in %d.\n",data.month,data.day,days,data.year);
     return 0;
      }
